package org.wangblue.concrete_colleague;

import org.wangblue.colleague.Colleague;
import org.wangblue.mediator.Mediator;

/**
 * @Description: 具体的同事类
 * @Author: WangBlue
 * @Create: 2024-09-25 10:16
 * @Version: 1.0
 **/

public class ConcreteColleague1 extends Colleague {

    public ConcreteColleague1(Mediator mediator) {
        super(mediator);
    }

    public void send(String message) {
        this.mediator.send(message, this);
    }

    public void nodtify(String message){
        System.out.println("同事 1 得到了信息：" + message);
    }
}
